<!DOCTYPE html>
<html>
<head>
  <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
</head>
<body>
  <div id="app">
    <input type="text" v-model="inputText" placeholder="请输入文本">
    <button @click="displayText">显示文本</button>
    <div>{{ outputText }}</div>
  </div>

  <script>
    new Vue({
      el: "#app",
      data: {
        inputText: "",
        outputText: ""
      },
      methods: {
        displayText() {
          this.outputText = this.inputText;
        }
      }
    });
  </script>
</body>
</html>